package appapi.entity.Zhongjiao;

import appapi.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @author  djq
 * @date 2023/5/25 16:05
 * @description: 
 */

/**
 * 管理人员
 */
@ApiModel(value = "管理人员")
@Data
public class StaffDto extends BaseEntity {
    /**
     * 人员ID
     */
    @ApiModelProperty(value = "人员ID")
    private Long staffId;

    /**
     * 组织机构ID
     */
    @ApiModelProperty(value = "组织机构ID")
    private Long orgaId;

    /**
     * 项目ID
     */
    @ApiModelProperty(value = "项目ID")
    private Long projId;

    /**
     * 人员姓名
     */
    @ApiModelProperty(value = "人员姓名",required = true)
    @NotNull(message = "人员姓名不能为空")
    @NotBlank(message = "人员姓名不能为空")
    @Length(max = 64)
    private String staffName;

    /**
     * 人员类型
     */
    @ApiModelProperty(value = "人员类型")
    private String staffType;

    /**
     * 证件号码
     */
    @ApiModelProperty(value = "证件号码")
    private String idCardNo;

    /**
     * 0男/1女
     */
    @ApiModelProperty(value = "0男/1女",required = true)
    @NotNull(message = "性别不能为空")
    private Integer staffSex;

    /**
     * 手机号码
     */
    @ApiModelProperty(value = "手机号码",required = true)
    @NotNull(message = "手机号码不能为空")
    @NotBlank(message = "手机号码不能为空")
    @Pattern(regexp = "\\d{11}", message = "手机号码必须为11位数字")
    @Length(min = 11,max = 32)
    private String staffMobile;

    /**
     * 账号
     */
    @ApiModelProperty(value = "账号")
    private String staffAccount;

    /**
     * 密码
     */
    @ApiModelProperty(value = "密码")
    private String staffPwd;

    /**
     * 0-正常;1-异常
     */
    @ApiModelProperty(value = "0-正常;1-异常")
    private Integer staffStatus;

    /**
     * 人员备注
     */
    @ApiModelProperty(value = "人员备注")
    private String staffNote;

    /**
     * 人员头像
     */
    @ApiModelProperty(value = "人员头像")
    private String staffPic;

    /**
     * 微信ID
     */
    @ApiModelProperty(value = "微信ID")
    private String staffWxid;


    @ApiModelProperty(value = "权限id")
    private Integer authId;


    @ApiModelProperty(value = "部门名称")
    private Integer projectName;
}